package com.zhiliao.iterator.demo2;

public class IteratorTest {
    public static void main(String[] args) {
        Iterator iterator = Aggregate.build("a", "b", "c").getIterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
